package edu.sctu.jarime.june.day20150614.OutAndInStream;

import java.io.Serializable;

/**
 * Created by user19 on 2015/6/14.
 */
public class Students implements Serializable {
    private String stuname;
    private String stunumebr;
    private int stuage;
    public Students(String stuname,String stunumebr,int stuage){
        setStuage(stuage);
        setStuname(stuname);
        setStunumebr(stunumebr);
        System.out.println("students:    "+"姓名："+getStuname()+"\t    "+"年龄："+getStuage()+"\t   "+"学号："+getStunumebr());
    }

    public void setStuage(int stuage) {
        this.stuage = stuage;
    }

    public void setStuname(String stuname) {
        this.stuname = stuname;
    }

    public void setStunumebr(String stunumebr) {
        this.stunumebr = stunumebr;
    }

    public int getStuage() {
        return stuage;
    }

    public String getStuname() {
        return stuname;
    }

    public String getStunumebr() {
        return stunumebr;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
